import http from "../util/http";
import qs from 'qs'

export default{
    login:params=>{
       return http.post('/admin/user/login',params)
    },
    signOut:params=>{
      return http.get('/admin/user/signOut',{params:params})
    },
    getTaskLsit:params=>{
      return http.post('/admin/task/getTaskList',params)
    },
    // 上架
    onSale:params=>{
      return http.post('/admin/task/onSale',params)
    },
    // 下架
    cancelSale:params=>{
      return http.post('/admin/task/cancelSale',params)
    },
    // 审核任务
    taskReview:params=>{
      return http.post('/admin/task/taskReview',params)
    }
}